<?php

/*

  Action	$3

  -1 Buy
  +3$

 */

class ScorchedEarth extends Card implements iAction, iKingdom, iHolyGrail {

    public function __construct() {
        parent::__construct("Scorched Earth", 3);
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "-1 Buy",
            "+3$");
    }

    public function play(Game $game, $isRealCard) {
        $game->addBuys(-1);
        $game->addMoney(new Price(3));
        ScreenDisplay::addScreenMessage($game, true, "get -1 buy and +3$ ", "gets -1 buy and +3$");

        $game->cardActionFinished();
        return true;
    }

}

?>